package com.chanjiedata.changbs.module.mine;

/**
 * 文件名 : SystemMessageDetailActivity
 * 创建者 : MangoWang
 * 创建日期 : 2019/11/28 18:02
 * 微信 : MangoWaWang
 * 邮箱 : 763482205@qq.com
 * 描述 : TODO
 */

import android.graphics.Color;
import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import com.chanjiedata.changbs.R;
import com.chanjiedata.changbs.utlis.StatusBarUtil;

import butterknife.BindView;
import butterknife.ButterKnife;

public class SystemMessageDetailActivity extends AppCompatActivity {


    @BindView(R.id.back_tv)
    TextView backTv;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.tv_content)
    TextView tvContent;
    @BindView(R.id.tv_time)
    TextView tvTime;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_system_message_detail);
        StatusBarUtil.setStatusBarLightMode(this, Color.parseColor("#ffffff"), true);
        ButterKnife.bind(this);
        initView();
        initListener();
    }

    private void initListener() {
        backTv.setOnClickListener(view -> {
            finish();
        });
    }

    private void initView() {
        tvTime.setText(getIntent().getStringExtra("time"));
        tvContent.setText(getIntent().getStringExtra("content"));
        tvTitle.setText(getIntent().getStringExtra("title"));
    }
}
